package com.hhxy.map;

import java.util.*;

public class ListMap {
    public static void main(String[] args) {
        Map<String, List<String>> map = new HashMap<>();
        List<String> list = new ArrayList<>();
        Collections.addAll(list,"A","B","C");
        map.put("张三",list);
        System.out.println(map);//{张三=[A, B, C]}
        //创建不可变的List集合
        List<Double> li = List.of(530.2,123.2);
        Map<String,Integer> maps = Map.of("a",1,"b",2);
        System.out.println(maps);
    }

}
